home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_fishing boat.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  587 b   |  30 lines

  1. //
  2. // fishing boat AI file
  3. //
  4. // Behaviors:
  5. //
  6. //        Fishing boat ai - search for seafood (yum!), collect it, and bring back to the naval dock.
  7. //
  8. //    Notes:
  9. //
  10. //    Known Problems:
  11. //
  12.  
  13. #include("Gather.tai")
  14.  
  15. // important that this go BEFORE including generic movement
  16. GetNextMoveWaypoint
  17. {
  18.     allof(GoalIsStorage,StorageInRange) true(AddResourceToStorage)
  19. }
  20.  
  21. #include("Generic Movement.tai")
  22.  
  23. // we shouldn't ever get into this state (fishing boats don't attack), but if we do, provide an exit
  24. CheckRange
  25. {
  26.     AlwaysTrue true(Idle)
  27. }
  28.  
  29. #include("Generic Death.tai")
  30.